import axios from 'axios';


//项目下各单据制单数
export function getAllbillTypeTotal(param) {
    return axios({
        method: 'get',
        url: '/activityStatistic/projectBillType',
        params: param,
        headers: {
            'Cache-Control': 'no-cache'
        }
    })
}
//报表组织列表
export function getPkOrgList(param) {
    return axios({
        method: 'get',
        url: '/organization/getPermOrgByUser',
        params: param,
        headers: {
            'Cache-Control': 'no-cache'
        }
    })
}

//报表组织列表活跃度统计
export function getProjectActivityData(param) {
    return axios({
        method: 'get',
        url: '/activityStatistic/info',
        params: param,
        headers: {
            'Cache-Control': 'no-cache'
        }
    })
}
//报表组织列表活跃度统计
export function getSearchProjectActivityData(param) {
    return axios({
        method: 'get',
        url: '/activityStatistic/order',
        params: param,
        headers: {
            'Cache-Control': 'no-cache'
        }
    })
}

//报表组织角色制单排序
export function getOrgRoleList(param) {
    return axios({
        method: 'get',
        url: '/activityStatistic/detail',
        params: param,
        headers: {
            'Cache-Control': 'no-cache'
        }
    })
}
export function handleGetReportData(param) {
    return axios({
        method: 'get',
        url: '/organization/getPermOrgByUser',
        params: param,
        headers: {
            'Cache-Control': 'no-cache'
        }
    })
}
//根据租户id查询所有模版
export function doPost(param) {
    return axios({
        method: 'post',
        url: '/print/doPost',
        params: param,
        headers: {
            'Cache-Control': 'no-cache'
        }
    })
}

//projectPlan/tenantId
export function getPlanData(param) {
    return axios({
        method: 'get',
        url: '/schedule/tenantId',
        params: param,
        headers: {
            'Cache-Control': 'no-cache'
        }
    })
}

//problemReason/statistical/percentage
export function getProblemReason(param) {
    return axios({
        method: 'get',
        url: '/problemReason/statistical/percentage',
        params: param,
        headers: {
            'Cache-Control': 'no-cache'
        }
    })
}

//problemReason/statistical/overdueCount
export function getSupplierProblem(param) {
    return axios({
        method: 'get',
        url: '/problemReason/statistical/overdueCount',
        params: param,
        headers: {
            'Cache-Control': 'no-cache'
        }
    })
}